﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <title>用户登录</title>
    <!-- 引入bootstrap样式表文件-->
    <link rel="stylesheet" href="/plugin/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    B2C网上商城
                    <small><a href="/welcome.html">首页</a> > 用户登录</small>
                </h1>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <ul id="myTab" class="nav nav-tabs">
                <li class="active"><a href="#maillogin" data-toggle="tab">邮箱登录</a></li>
                <li><a href="#cphonelogin" data-toggle="tab">手机登录</a></li>
            </ul>
            <br>
            <div id="myTabContent" class="tab-content">

                <!-- 邮箱登录 -->
                <div class="tab-pane fade in active" id="maillogin">
                    <form class="form-horizontal" role="form" action="/user/userLoginByEmail.do" method="post">
                        <div class="form-group">
                            <label for="email" class="col-sm-4  control-label">邮箱</label>
                            <div class="col-sm-4">
                                <!-- bootstrap设定邮箱验证和邮箱输入框  required(非空验证) autofocus(自动鼠标聚焦)-->
                                <input type="email" class="form-control " id="email"
                                       name="email" placeholder="请输入邮箱" required autofocus/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-4 control-label">密码</label>
                            <div class="col-sm-4">
                                <!-- bootstrap设定密码验证和密码输入框  required(非空验证) autofocus(自动鼠标聚焦)-->
                                <input type="password" class="form-control" id="password"
                                       name="password" placeholder="请输入密码" required autofocus/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="c1" class="col-sm-4 control-label">验证码</label>
                            <div class="col-sm-8">
                                <!-- 验证脚本的对象  -->
                                <div id="c1"></div>
                                <!-- token 用户信息的一个对象 -->
                                <input type="hidden" name="token" id="token">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="remeberme" class="col-sm-4 control-label"></label>
                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label><input type="checkbox" name="remeberme"/>记住我</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="submit" class="col-sm-4 control-label"></label>
                            <div class="col-sm-8">
                                <button type="submit" class="btn btn-primary">登 录</button>
                                &nbsp;&nbsp; <a href="/web/register.jsp" class="btn btn-info">注 册</a>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 "></div>
                            <div class="col-sm-8  center-block">
                                <font color='red'></font>
                            </div>
                        </div>
                    </form>
                </div>

                <!-- 电话登录 -->
                <div class="tab-pane fade" id="cphonelogin">
                    <form class="form-horizontal" role="form" action="/user/userLoginByCellphone.do"
                          method="post">
                        <div class="form-group">
                            <label for="cphone" class="col-sm-4 control-label"></label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="form-control " id="cphone" name="cellphone"
                                           placeholder="请输入手机号码" required autofocus/>
                                    <span class="input-group-btn">
                                        <input type="button" class="btn btn-defalut " id="btnpcode"
                                               value="获取验证码" name="cellCode" onclick="getpcode()" style="width:110px"/>
                                    </span>
                                </div>
                                <span id="cpmsg" style="color: red"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cVcode" class="col-sm-4 control-label"></label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="form-control " id="cVcode" name="cVcode"
                                           placeholder="请输入验证码" required autofocus/>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="submit" class="col-sm-4 control-label"></label>
                            <div class="col-sm-8">
                                <div class="input-group">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 "></div>
                            <div class="col-sm-8  center-block">
                                <!-- font H5标签 -->
                                <font color='red'></font>
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>
<!-- 引入jQuery javascript脚本 -->
<script src="/plugin/jquery/1.11.3/jquery.min.js"></script>
<!-- 引入bootstrap javascript脚本 -->
<script src="/plugin/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<!-- 引入顶象公司(第3方控件)的验证脚本 -->
<script type="text/javascript" src="https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js"></script>
<!-- 引入自定义的脚本 -->
<script src="/js/user.js"></script>
</body>
</html>